Type Reconstruction for Type Classes

نویسندگان

  • Tobias Nipkow
  • Christian Prehofer
چکیده

We study the type inference problem for a system with type classes as in the functional programming language Haskell. Type classes are an extension of ML-style polymorphism with overloading. We generalize Milner’s work on polymorphism by introducing a separate context constraining the type variables in a typing judgement. This leads to simple type inference systems and algorithms which closely resemble those for ML. In particular we present a new unification algorithm which is an extension of syntactic unification with constraint solving. The existence of principal types follows from an analysis of this unification algorithm.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Patient Race and Provider Predict Patient Satisfaction Following Post-Mastectomy Breast Reconstruction

BACKGROUND Post-mastectomy breast reconstruction is commonly performed in the United States with numerous options available to patients and providers. This study evaluated patient race and provider in prediction of patient satisfaction following post-mastectomy breast reconstruction. METHODS The patient satisfaction for women who underwent post mastectomy breast reconstruction at U...

متن کامل

New classes of Lyapunov type inequalities of fractional $Delta$-difference Sturm-Liouville problems with applications

‎In this paper‎, ‎we consider a new study about fractional $Delta$-difference equations‎. ‎We consider two special classes of Sturm-Liouville problems equipped with fractional $Delta$-difference operators‎. ‎In couple of steps‎, ‎the Lyapunov type inequalities for both classes will be obtained‎. ‎As application‎, ‎some qualitative behaviour of mentioned fractional problems such as stability‎, ‎...

متن کامل

On the type of conjugacy classes and the set of indices of maximal subgroups

‎Let $G$ be a finite group‎. ‎By $MT(G)=(m_1,cdots,m_k)$ we denote the type of‎ ‎conjugacy classes of maximal subgroups of $G$‎, ‎which implies that $G$ has exactly $k$ conjugacy classes of‎ ‎maximal subgroups and $m_1,ldots,m_k$ are the numbers of conjugates‎ ‎of maximal subgroups of $G$‎, ‎where $m_1leqcdotsleq m_k$‎. ‎In this paper‎, ‎we‎ ‎give some new characterizations of finite groups by ...

متن کامل

Stability of two classes of improved backward Euler methods for stochastic delay differential equations of neutral type

This paper examines stability analysis of two classes of improved backward Euler methods, namely split-step $(theta, lambda)$-backward Euler (SSBE) and semi-implicit $(theta,lambda)$-Euler (SIE) methods, for nonlinear neutral stochastic delay differential equations (NSDDEs). It is proved that the SSBE method with $theta, lambdain(0,1]$ can recover the exponential mean-square stability with some...

متن کامل

Surface reconstruction of detect contours for medical image registration purpose

Although, most of the abnormal structures of human brain do not alter the shape of outer envelope of brain (surface), some abnormalities can deform the surface extensively. However, this may be a major problem in a surface-based registration technique, since two nearly identical surfaces are required for surface fitting process. A type of verification known as the circularity check for th...

متن کامل

The Prevalence, Zone, and Type of the Meniscus Tear in Patients with Anterior Cruciate Ligament (ACL) Injury; Does Delayed ACL Reconstruction Affects the Meniscal Injury?

Background: Meniscus tear is a common finding in patients with anterior cruciate ligament (ACL) injury and may affectthe natural history of the injury and the outcomes of treatment. In the current study, the characteristics of meniscus tearsin patients who underwent arthroscopic ACL reconstruction were investigated.Methods: The hospital records of 1022 patients were reviewed. ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • J. Funct. Program.

دوره 5  شماره 

صفحات  -

تاریخ انتشار 1995